<?php
include_once('common.inc.php');
$smarty = new Tpl();
//product
$proModel = new Model('product');
$product = $proModel->order('`order`,`id` DESC')->get();
$smarty->assign("product", $product);

//banner
$advModel = new Model('advertise');
$banners = $advModel->where('`type`=1')->order('`order`')->get();
$smarty->assign("banners", $banners);
$smarty->display('about.html');
